import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Index from '@/pages/index'
import Course from '@/pages/course'
import UserCenter from '@/pages/userCenter'



Vue.use(Router)

export default new Router({
  routes: [
   
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/course/:id',
      name: 'Course',
      component: Course
    },
    {
      path: '/userCenter',
      name: 'UserCenter',
      component: UserCenter
    },
  ]
})
